Skip to content

Fix UtUtils version parsing & comment formatting #1401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

sofurihafe
Copy link
Member

Description

This PR fixes UtUtils comment formatting referring to #1385.

Also, because of wrong UtUtils version parsing UtUtils was always being recreated no matter UtUtils priority (with mocking support vs. without mocking support). It was fixed as well.

It was suggested to give a name to the region, now the UtUtils looks like this:

/**
 * This is UtUtils class with Mockito support
 * UtUtils class version: 2.0
 */
public final class UtUtils {
    ///region Util classes

    /**
     * This class represents the {@code type} and {@code value} of a value captured by lambda.
     * Captured values are represented as arguments of a synthetic method that lambda is compiled into,
     * hence the name of the class.
     */
    public static class CapturedArgument {
        <...>
    }
    ///endregion

    ///region Util methods
    <...>
    ///endregion
}

Fixes #1378, #1380, #1385

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Automated Testing

UtBot-samples.

Manual Scenario

Reproduced scenarios from issues described above and verified that they were fixed.

@EgorkaKulikov EgorkaKulikov merged commit 04c85da into main Nov 21, 2022
@EgorkaKulikov EgorkaKulikov deleted the andrey-t/ututils-fixes branch November 21, 2022 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad formatting of UtUtils Javadoc after it has been updated UtUtils has region without name UtUtils with mocks rewritten by UtUtils without mocks
2 participants